<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>汽车品牌列表</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="<c:url value='/jsps/css/car/list.css'/>">
<link rel="stylesheet" type="text/css"  href="<c:url value='/jsps/pager/pager.css'/>" />
<script type="text/javascript" src="<c:url value='/jquery/jquery-1.5.1.js'/>"></script>
<script type="text/javascript" src="<c:url value='/jsps/js/car/list.js'/>"></script>
<style type="text/css">
input {
	width: 100px;
	height: 30px;
	border-style: solid;
	margin: 0px;
	margin-left: 5px;
	margin-top: 10px;
	border-color: #15B69A;
    border-radius: 3px;
}

a {
	text-transform: none;
	text-decoration: none;
	border-width: 0px;
    color:#15B69A;
}

a:hover {
	border-width: 0px;
    color:#8AD700;
}

span {
	margin: 0px;
}
</style>
</head>

<body>

    <form action="<c:url value='/car/findByCondition.do'/>" method="get"
        target="body" id="form1">
        <input type="text" name="bname"   placeholder="输入名称"/>
        <input type="text" name="manufacturer"   placeholder="输入制造商"/>
        <input type="text" name="supplier"   placeholder="输入供应商"/>
        <span>
            <a href="javascript:document.getElementById('form1').submit();">
                <img style="margin-top: 10px; border-radius: 3px;" align="top" border="0"
                src="../images/btn.bmp" />
            </a>
            <%-- <a href="<c:url value='/jsps/gj.jsp'/>" style="font-size: 11pt;font-family: 'microsoft yahei';"
            target="body">高级搜索</a> --%>
        </span>
    </form>

    <ul>
    <c:forEach items="${pb.beanList }" var="car">
        <li>
            <div class="inner">
                <a class="pic"
                    href="<c:url value='/car/load.do?carNo=${car.carNo }'/>"><img
                    src="<c:url value='/${car.image_b }'/>"
                    border="0" /></a>
                <p class="price">
                    <span class="price_n">&yen;${car.currPrice }</span> <span
                        class="price_r">&yen;${car.price }</span> (<span
                        class="price_s">${car.discount }折</span>)
                </p>
                <p><span>名称：</span>
                    <a id="bname"
                        title="${car.bname }"
                        href="<c:url value='/book/load.do?carNo=${car.carNo }'/>">${car.bname }</a>
                </p>
                <p><span>品牌：</span>
                <a href="<c:url value="/car/findByBrand.do" var="brandUrl">
                    <c:param name="brand" value="${car.brand }"></c:param>
                </c:url>">${car.brand }</a>
                </p>
                <p><span>制造商：</span>
                 <a href="<c:url value="/car/manufacturer.do" var="manufacturerUrl">
                    <c:param name="manufacturer" value="${car.manufacturer }"></c:param>
                </c:url>">${car.manufacturer }</a>
                </p>
                <p class="publishing">
                    <span>供应商：</span>${car.supplier }
                </p>
              <%--   <p class="publishing_time">
                    <span>出厂时间：</span>${car.factoryTime }
                </p>
                <p class="publishing_time">
                    <span>上市时间：</span>${car.publishTime }
                </p> --%>
            </div>
        </li>

     </c:forEach>   
    </ul>

    <div style="text-align: center; float:left; width:100%;">
        <hr />
        <br /> <%@include file="/jsps/pager/pager.jsp"%>
    </div>

</body>

</html>

